<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<title>数据类型</title>
</head>
<body>
</body>
</html>
<script>
	console.log(typeof 1)
	console.log(typeof "1")
	console.log(typeof true)
	console.log(typeof undefined)
	console.log(typeof null)
	console.log(typeof {})
	console.log(typeof [])
	console.log(typeof alert)
	let b1 = {
		b2: [1, 2, "abc", console.log],
		b3: function () {
			console.log('b3')
		}
	};
	console.log(b1 instanceof Object)
	console.log(b1.b2 instanceof Array)
	console.log(b1.b3 instanceof Function)
	console.log('-------------------')
	console.log(1 instanceof Number)//false
	console.log('1' instanceof String)//false
	console.log({} instanceof Object)// true
	console.log([] instanceof Object,[] instanceof Array)// true true
	console.log(alert instanceof Object,alert instanceof Function)// true true
</script>
